package co.yixiang.huiMin.mapper;

import co.yixiang.huiMin.entity.YxStoreOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author Author
 * @since 2020-07-04
 */
public interface YxStoreOrderMapper extends BaseMapper<YxStoreOrder> {

    /**
     * 查询今天订单
     * @param merId
     * @return
     */
    List<YxStoreOrder> selectMassageTodayList(@Param("merId")String merId);


    /**
     * 查询今天金额
     * @param merId
     * @return
     */
    BigDecimal selectMassageTodayMoney(@Param("merId")String merId);


    /**
     * 查询本月订单数量
     * @param merId
     * @return
     */
    List<YxStoreOrder> selectMassageMonthList(@Param("merId")String merId);



    /**
     * 查询本月金额
     * @param merId
     * @return
     */
    BigDecimal selectMassageMonthMoney(@Param("merId")String merId);
}
